
const isType = type => target => `[object ${type}]` === Object.prototype.toString.call(target);

export const isArray = isType('Array');
export const isObject = isType('Object');
export const isRegexp = isType('RegExp');
export const isDate = isType('Date');
export const isNull = isType('Null');
export const isUndefined = isType('Undefined');


console.log(isUndefined())
